<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Database\Eloquent\Model;

class SegmentSentenceRecord extends Model
{
	use HasDateTimeFormatter;
    use SoftDeletes;

    protected $table = 'segment_sentence_record';

    protected $fillable = ['type','source_name','target_name','source_language_code','target_language_code'];

    public function types(){
        return $this->belongsTo(TranslateType::class,'type','id');
    }

}
